package com.func.boom.controller;

import com.func.boom.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Yulei
 * @date 2020-08-16 17:35:16
 * @desc
 */
@RestController
public class TestController {

    @Autowired
    TestService testService;

    @GetMapping("/test")
    public String test(){
        return testService.test();
    }

    public String fallback(){
        return "error";
    }

}
